﻿@model IEnumerable<GmaWebService.Interfaces.WebEpisode>
@{
    ViewBag.Title = "Episodes";
}

<h2>
    Episodes</h2>
<div class="column">
    <img class="img" src="@Url.Action("Image", new { serie = @Model.ElementAt(1).IdSerie, season = @Model.ElementAt(1).SeasonNumber })" alt="" />
</div>
<div class="column">
    <ul>
        @foreach (var episode in Model)
        {
           
            <li>@Html.ActionLink("Episode " + episode.EpisodeNumber + " - " + episode.Name, "Play", new { episode = episode.Id })
            </li>
            
        }
    </ul>
</div>

